Skip to content

Conversation

@wchargin
Copy link
Contributor

@wchargin wchargin commented Jan 2, 2016

Summary:
This regex was modified in 325c048,
where the tokens \(>\)\@! were added.
This was supposed to be a negative lookahead for a literal >.
However, this didn't work because the regexp has the \v flag,
so the regexp actually ended up matching nothing.

Closes #333.

Test Plan:
Install the gerw/vim-HiLinkTrace plugin.
Write let x = 3 in a new JavaScript file.
Place the cursor on the x and enter :HLT<CR>.
Before the patch is applied,
the SynStack and HltTrace fields of the message should be blank.
Then, apply the patch, relaunch vim, and repeat the HLT command;
the message should now contain SynStack: jsAssignmentExpr->....

Summary:
This regex was modified in 325c048,
where the tokens `\(>\)\@!` were added.
This was supposed to be a negative lookahead for a literal `>`.
However, this didn't work because the regexp has the `\v` flag,
so the regexp actually ended up matching nothing.

Closes #333.

Test Plan:
Install the [gerw/vim-HiLinkTrace][HLT] plugin.
Write `let x = 3` in a new JavaScript file.
Place the cursor on the `x` and enter `:HLT<CR>`.
Before the patch is applied,
the `SynStack` and `HltTrace` fields of the message should be blank.
Then, apply the patch, relaunch vim, and repeat the `HLT` command;
the message should now contain `SynStack: jsAssignmentExpr->...`.

  [HLT]: https://github.com/gerw/vim-HiLinkTrace
@davidchambers
Copy link
Collaborator

LGTM. I appreciate the detailed description. Thanks!

davidchambers added a commit that referenced this pull request Jan 2, 2016
Respect 'very-magic' in 'jsAssignmentExpr' regexp
@davidchambers davidchambers merged commit cbe6663 into pangloss:develop Jan 2, 2016
@wchargin wchargin deleted the fix-jsAssignmentExpr branch January 2, 2016 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants